package com.kingyun.gpsinspection.purificationservice.dao.mapper.tdm;


import com.kingyun.gpsinspection.purificationservice.facade.model.tdm.WorkPermit;
import com.kingyun.gpsinspection.purificationservice.facade.model.tdm.WorkPermitVo;

public interface WorkPermitMapper {
    int deleteByPrimaryKey(String workPermitId);

    int insert(WorkPermit record);

    int insertSelective(WorkPermit record);

    WorkPermitVo selectByPrimaryKey(String workPermitId);

    int updateByPrimaryKeySelective(WorkPermit record);

    int updateByPrimaryKey(WorkPermit record);

    void insertNew(WorkPermit workPermit);

    WorkPermitVo findWorkPermitByPiid(String piid);

    /**
     * 作业许可未超期总数
     *
     * @param orgId 组织id
     */
    Integer queryOperationLicenseCount(String orgId);

    /**
     * 作业许可A类未超期总数
     *
     * @param orgId 组织id
     */
    Integer queryAOperationLicenseCount(String orgId);
}